const express=require('express');
const router=express.Router();
const {createThumbsUp,selectThumbsUp,deleteThumbsUp} =require('../service/ThumbsUpModService.js');

router.post('/createThumbsUp',async function(req, res,next){
  let data = await createThumbsUp(req.body);
});

router.post('/selectThumbsUp',async function(req, res, next){
  let data = await selectThumbsUp(req.body)
  res.send(data);
})

router.post('/deleteThumbsUp',async function(req, res, next){
  let data = await deleteThumbsUp(req.body)
})
module.exports =router;